From 594cc47dbe325ab29bd6c8c3b385dea8a2a25b97 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 21 Sep 2004 20:20:09 +0000 Subject: [PATCH] Give the path bar arrows some more space. 2004-09-21 Matthias Clasen * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path bar arrows some more space. --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkpathbar.c | 2 +- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 948d7450fe..d50450f325 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-09-21 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path + bar arrows some more space. + * configure.in: Check for mallinfo. * tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 948d7450fe..d50450f325 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-09-21 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path + bar arrows some more space. + * configure.in: Check for mallinfo. * tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 948d7450fe..d50450f325 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-09-21 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path + bar arrows some more space. + * configure.in: Check for mallinfo. * tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 948d7450fe..d50450f325 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-09-21 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path + bar arrows some more space. + * configure.in: Check for mallinfo. * tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index 9da508c7b1..67ac552bd7 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -253,7 +253,7 @@ gtk_path_bar_size_request (GtkWidget *widget, /* Theoretically, the slider could be bigger than the other button. But we're * not going to worry about that now. */ - path_bar->slider_width = requisition->height / 2 + 5; + path_bar->slider_width = MIN(requisition->height * 2 / 3 + 5, requisition->height); if (path_bar->button_list && path_bar->button_list->next != NULL) requisition->width += (path_bar->spacing + path_bar->slider_width) * 2; -- 2.30.2